import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { VideoComponent } from './video/video.component';
import { MenuComponent } from './menu/menu.component';
import { MobileHomeComponent } from './mobile-home/mobile-home.component';
import { MobileMineComponent } from './mobile-mine/mobile-mine.component';
import { MobileVideopageComponent } from './mobile-videopage/mobile-videopage.component';
import { DynamicComponent } from './mobile-dynamic/dynamic.component';
import { MobileCommentComponent } from './mobile-comment/mobile-comment.component';
import { MobileHotComponent } from './mobile-hot/mobile-hot.component';

/**
 * 路由参数列表
 */
const routes: Routes = [
  {
    path: '',
    redirectTo: '/bvideo/mobile-home',
    pathMatch: 'full',
  },
  {
    path: 'home',
    component: HomeComponent,
  },
  {
    path: 'video',
    component: VideoComponent
  },

  {
    path: 'menu',
    component: MenuComponent
  },


  {
    path: 'mobile-home',
    component: MobileHomeComponent
  },
  {path: 'mobile-mine',
  component:MobileMineComponent
},
{
  path:'mobile-videopage',
  component:MobileVideopageComponent
}  ,
{path: 'mobile-dynamic',
  component:DynamicComponent
},
{path: 'mobile-comment',
component:MobileCommentComponent
},
{path: 'mobile-hot',
component:MobileHotComponent
},
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class BvideoRoutingModule { }
